package cn.kgc.easybuy.service.impl;

import cn.kgc.easybuy.dao.OrderDetialMapper;
import cn.kgc.easybuy.pojo.OrderDetial;
import cn.kgc.easybuy.service.OrderDetialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class OrderDetialServiceImpl implements OrderDetialService {

    @Autowired
    private OrderDetialMapper orderDetialMapper;
    @Override
    public List<OrderDetial> selectOrderDetialByOrderId(Integer orderId) {
        return orderDetialMapper.selectOrderDetialByOrderId(orderId);
    }

    @Override
    public boolean addOrderDetial(OrderDetial orderDetial) {
        return orderDetialMapper.addOrderDetial(orderDetial) > 0;
    }


}
